<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add an album or a book</title>
</head>
<body>
	<form action="/Cs420Web/Order" method="get">
		<br>
		<tr>
			<td>Choose An album:</td>
			<td><select id="searchType" name="idAlbum">
					<c:forEach items="${albums}" var="albums">
						<option value="${albums.idAlbum}">${albums.title}</option>
					</c:forEach>
			</select></td>
		</tr>
		<br>
		<br>
		<tr>
			<td>Choose the size:</td>
			<td><select id="searchType" name="idSize">
					<c:forEach items="${sizes}" var="size">
						<option value="${size.idSize}">${size.format}</option>
					</c:forEach>
			</select></td>
		</tr>
		<br>
		<br>
		<tr><td>Quantity<input type="text" name="qty" value="1"/></td></tr>
		<br>
		<br>
		<tr>
			<td><input type="submit" value="Add album to order" id="action" name="addAlbum"/></td>
		</tr>
	</form>
</body>
</html>